package com.imut.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imut.oa.annotation.AutoFill;
import com.imut.oa.contant.OperationType;
import com.imut.oa.pojo.dto.AdminUpdateDTO;
import com.imut.oa.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
* @author YRX
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-11-25 16:22:49
* @Entity generator.domain.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    void update(User user);

    @Select("select userPassword from user where id = #{currentId}")
    String getUserPasswordById(Long currentId);
}




